//
//  InterestsView.m
//  League
//
//  Created by 博宇 李 on 2018/1/23.
//  Copyright © 2018年 ciyuanjuzhen. All rights reserved.
//

#import "InterestsView.h"

@implementation InterestsView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.frame=frame;
        self.backgroundColor = [UIColor whiteColor];
        [self setupUI];
    }
    return self;
}
-(void)setupUI
{
    self.interestLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.width*0.8, self.height)];
    [self addSubview: self.interestLab];
    
    self.delBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    self.delBtn.frame = CGRectMake(self.width - 55, 0, 28, 28);
    [self.delBtn setImage:[UIImage imageNamed:@"delBtn"] forState:UIControlStateNormal];
    [self addSubview:self.delBtn];
    
    self.addBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    self.addBtn.frame = CGRectMake(self.width - 28, 0, 28, 28);
    [self.addBtn setImage:[UIImage imageNamed:@"add"] forState:UIControlStateNormal];
    [self addSubview:self.addBtn];
}
@end
